package demo02;

import java.util.ArrayList;
import java.util.List;

public class Dept {
    private String deptname;
    private String deptid;
  private List<emp> list=new ArrayList<>();

    @Override
    public String toString() {
        return "Dept{" +
                "deptname='" + deptname + '\'' +
                ", deptid='" + deptid + '\'' +
                ", list=" + list +
                '}';
    }

    public String getDeptname() {
        return deptname;
    }

    public void setDeptname(String deptname) {
        this.deptname = deptname;
    }

    public String getDeptid() {
        return deptid;
    }

    public void setDeptid(String deptid) {
        this.deptid = deptid;
    }

    public List<emp> getList() {
        return list;
    }

    public void setList(List<emp> list) {
        this.list = list;
    }

    public Dept(String deptname, String deptid) {
        this.deptname = deptname;
        this.deptid = deptid;
    }

    public Dept(String deptname, String deptid, List<emp> list) {
        this.deptname = deptname;
        this.deptid = deptid;
        this.list = list;
    }

    public Dept() {
    }
}
